package edu.seu.mart.dao.impl;

import edu.seu.mart.dao.IAdminDao;
import edu.seu.mart.dao.BaseDao;
import edu.seu.mart.model.Admin;
import org.springframework.stereotype.Repository;

@Repository("adminDao")
public class AdminDao extends BaseDao<Admin> implements IAdminDao {

    @Override
    public Admin loadByUsername(String username) {
        String hql = "from Admin where username = ?";
        return (Admin) this.queryObject(hql, username);
    }
}
